<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="common/include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="col-sm-12">
			<div class="ibox">
				<div class="ibox-body">
					<div class="fixed-table-toolbar">
						<div class="columns pull-left">
                            <button shiro:hasPermission="/dict/add" type="button" class="btn btn-primary" onclick="add()">
                                <i class="fa fa-plus"></i>添加
                            </button>
                            <button shiro:hasPermission="/dict/edit" type="button" class="btn btn-success" onclick="edit()">
                                <i class="fa fa-edit"></i>编辑
                            </button>
                            <button shiro:hasPermission="/dict/del" type="button" class="btn btn-danger" onclick="del()">
                                <i class="fa fa-trash"></i>删除
                            </button>
						</div>
                        <div class="columns pull-right">
                            <button type="button" class="btn btn-success" onclick="find()">
                                <i class="fa fa-search"></i>查询
                            </button>
                        </div>

                        <div class="columns pull-right col-md-2 nopadding">
                            <input id="searchName" type="text" class="form-control" placeholder="编码">
                        </div>
					</div>
					<table id="exampleTable" data-mobile-responsive="true">
					</table>
				</div>
			</div>
		</div>

        <!--表格行内按钮权限设置-->
        <div>
            <script type="text/javascript">
                var editFlag = 'hidden';
                var delFlag = 'hidden';
            </script>
        </div>
        <div shiro:hasPermission="/dict/edit">
            <script type="text/javascript">
                editFlag = '';
            </script>
        </div>
        <div shiro:hasPermission="/dict/del">
            <script type="text/javascript">
                delFlag = '';
            </script>
        </div>
        <!--表格行内按钮权限设置-->
	</div>
    <div th:include="common/include :: footer"></div>
    <script type="text/javascript" th:src="@{/project/dict/dict.js}"></script>
</body>
</html>